/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author LYS
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmZoneallocationHistory extends BasicModel<PmZoneallocationHistory> {
  name?: string; // 项目名称
  projectcode?: string; // 项目编号
  projectaddress?: string; // 项目地址
  projectamount?: number; // 项目金额
  contractamount?: number; // 合同金额
  createtime?: string; // 接收时间
  constructionunit?: string; // 承包商
  constructioncrew?: string; // 项目负责人
  plannedduration?: string; // 计划工期
  contactpersonidcard?: string; // contactpersonidcard
  supervisioncost?: number; // 安全文明措施费
  firecontrolcost?: number; // firecontrolcost
  haswatermeter?: number; // haswatermeter
  projecttype?: number; // projecttype
  supervision?: string; // 监理单位
  projectleader?: string; // 项目负责人
  techleader?: string; // 技术责任人
  securityleader?: string; // 安全责任人
  engineermanager?: string; // engineermanager
  materialowner?: string; // 材料负责人
  dataowner?: string; // 资料负责人
  usercodemid?: string; // 中间验收人
  usernamemid?: string; // 中间验收人
  codemid?: string; // codemid
  usercodewat?: string; // usercodewat
  usernamewat?: string; // 竣工验收人
  codewat?: string; // codewat
  usercodepre?: string; // usercodepre
  usernamepre?: string; // usernamepre
  codepre?: string; // codepre
  administrativearea?: string; // administrativearea
  hydrant?: number; // hydrant
  contacts?: string; // contacts
  phone?: string; // phone
  confirmationformid?: string; // confirmationformid
  remark?: string; // remark
  autoid?: number; // autoid
  historytime?: string; // historytime
  tlog?: string; // tlog
}

export const pmZoneallocationHistoryList = (params?: PmZoneallocationHistory | any) =>
  defHttp.get<PmZoneallocationHistory>({ url: adminPath + '/proj/info/pmZoneallocationHistory/list', params });

export const pmZoneallocationHistoryListData = (params?: PmZoneallocationHistory | any) =>
  defHttp.post<Page<PmZoneallocationHistory>>({ url: adminPath + '/proj/info/pmZoneallocationHistory/listData', params });

export const pmZoneallocationHistoryForm = (params?: PmZoneallocationHistory | any) =>
  defHttp.get<PmZoneallocationHistory>({ url: adminPath + '/proj/info/pmZoneallocationHistory/form', params });

export const pmZoneallocationHistorySave = (params?: any, data?: PmZoneallocationHistory | any) =>
  defHttp.postJson<PmZoneallocationHistory>({ url: adminPath + '/proj/info/pmZoneallocationHistory/save', params, data });

export const pmZoneallocationHistoryDelete = (params?: PmZoneallocationHistory | any) =>
  defHttp.get<PmZoneallocationHistory>({ url: adminPath + '/proj/info/pmZoneallocationHistory/delete', params });
